package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetProductListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2015-7-8   下午2:55:26
 */
@XmlRootElement
public class GetProductListResp extends SuperResp {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -2340374663059313207L;

	private Integer recordSize;
	List<ProductInfo> productInfos;
	
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<ProductInfo> getProductInfos() {
		return productInfos;
	}

	public void setProductInfos(List<ProductInfo> productInfos) {
		this.productInfos = productInfos;
	}

	@Override
	public String toString() {
		return "GetProductListResp [recordSize=" + recordSize
				+ ", productInfos=" + productInfos + ", getResultCode()="
				+ getResultCode() + ", getResultDesc()=" + getResultDesc()
				+ "]";
	}

	public static class ProductInfo implements Serializable{

		/** 
		* @Fields serialVersionUID : TODO
		*/ 
		private static final long serialVersionUID = 153384013096858129L;
		
		private String code;
		private String name;
		private String picture;
		private String description;
		private Integer sequence;
		//yyyyMMddHHmmss
		private String createTime;
		private Integer status;
		private Long cpCode;
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getPicture() {
			return picture;
		}
		public void setPicture(String picture) {
			this.picture = picture;
		}
		public String getDescription() {
			return description;
		}
		public void setDescription(String description) {
			this.description = description;
		}
		public Integer getSequence() {
			return sequence;
		}
		public void setSequence(Integer sequence) {
			this.sequence = sequence;
		}
		public String getCreateTime() {
			return createTime;
		}
		public void setCreateTime(String createTime) {
			this.createTime = createTime;
		}
		public Integer getStatus() {
			return status;
		}
		public void setStatus(Integer status) {
			this.status = status;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
		@Override
		public String toString() {
			return "ProductInfo [code=" + code + ", name=" + name + "]";
		}
	}
}
